Latest Questions

useContext gives App.js:24 Uncaught TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))

I am using an Auth Context Provider in my App, which is initialised in this file: authState.js import React, { useReducer, createContext, useContext } from "rea

Goaccess Format Error - Verify your log/date/time format

My log lines are like 2022-05-06T11:21:16.40-0400 [RTR/4] OUT saat-user-auth-web-edu.apps.stl.pcfdev00.mastercard.int - [2022-05-06T15:21:16.213506208Z] "POST /

ModuleNotFoundError: folder structure problem in my scrapy project?

I am new to scrapy and vscode, and my project was working perfectly fine until I decided to get tidy with the folders before uploading on github . After that, w

Wordpress Multisite brakes wp-load.php

I'm trying to write a small tool using php. This temporarily connects to one of two Wordpress systems on the same web space by loading the wp-load.php of the ne

Call async inside public static bool

I wrote code about the settings page that uses static bool then I need to Check If the public static bool changed or not In the form that I needed to call (Form

Android activity onKeyDown() not triggered for Power button, and Intent.ACTION_SCREEN_OFF is not broadcasted either

I have an Activity (Activity_RingAlarm) that is supposed to be launched as a full-screen intent when an alarm rings. The activity is launched fine, no issue the

unable to connect with pod running in GKE

Created 3 node GKE cluster. From cmd prompt local logged into gcloud. Created a pod with nginx container and exposed port 80 apiVersion: v1 kind: Pod metada

Google map plugin in custom fields how to add custom division

How to override custom fields template google map plugin page.custom-fields.php

How to make a loop of random column combinations without repeating the combination in pandas dataframe?

I have a pandas dataframe that has 4 columns (A,B,D,E,F,G). I want to randomize each combination into 4 combinations (e.g. ABDE, ADEF, AEFG). And then add the c

how to use @foreach inside AJAX & jQuery code for insert Multiple rows Data in Laravel 8

The code it works normal when i put option in static mode, for example: "<select name='id_post[]' id='' class='form-control'>"+ "<option value='1'&

Conditional statement without using if-else in python

So here is the question. There are 2 variables having values of 3 and 5 respectively. if the user enters 3, "5" should be printed and vice versa. implement the

Shiny app file upload is substantially slower on different machines

I have a shiny application that takes a file upload, calls a script that processes the uploaded file, and writes 4 csvs as output. The app works but as the titl

Trying to resolve Java issue when running Tabulizer in R

I am trying to extract tables from pdfs in R using tabulizer, and keep getting this error when I use extract_tables. Error in .jcall("RJavaTools", "Ljava/lang/O

error: Undefined name 'uploadTask'. Flutter error

I am integrating file uploading system in my flutter project using firebase. While making progress indicator I am getting undefined name 'uploadTask' error. In

How to fix error in db.create_all() in docker?

Trying to launch postgres and flask in docker. Postgres is working ok as i see. But flask is cancelling to work properly The head of log is here: Traceback (mo

Plotly layout Z-axes config

How to set height of Z axes in graph_object.layout I tried using zaxis: { showgrid: true, zeroline: true, linecolor: '#d7d7d7', linewidth: 1,

OpenMP can't parallelize for loop with map iterator

The code is as follows. int main() { map<int,int> a; for (int i = 0; i < 6; i++) { a.insert(make_pair(i, i+1)); } map&

How to handle different JSONs in Golang? [duplicate]

I am a novice developer and faced such a problem, I can receive a json which in some cases has different data, for example Example 1: { "order

Gem::Ext::BuildError: ERROR: Failed to build gem native extension - rbnacl-libsodium 1.0.16

I was trying bundle install and my gem file has gem 'rbnacl-libsodium' it took some time for installation and got failed. Using rbnacl 4.0.2 Fetching rbnacl-lib

How to get GPU Energy cost in XCode?

My unity game is getting very hot quickly, So I use XCode Energy Impact to test the energy use for it on iPhone8. In Debugging Gauges, Click Energy impact, I ca

How to animate content replacement in Android Bottom Sheet

I have a BottomSheetDialogFragment which contains two different layouts <androidx.constraintlayout.widget.ConstraintLayout android:layout_width="match_pa

SIFT match computer vision

I need to determine the location of yogurts in the supermarket. Source photo looks like With template: I using SIFT to extract key points of template: img1 =

Need to set up diiferent java versions to run both android studio and bamboo

On the server I have 2 versions of java, 8 and 11. 11 is the default, it is needed for android studio to work. To run the bamboo agent, I need 8. How to choose

Writing Escape Characters in Plain Text with XML

I'm having an issue parsing some XML with C#. To give an example, I'm taking some XML that contains the following tag: <Message>Hello, my name is&#xA;

how to add a new item inside an object

react I have that problem. I cant add a new item inside an object const person = { name:"farhan", age:"25", address:"daka" }; person.push({professi

Maui RC1 - "System.NotSupportedException: Must call AddTerm AddSeparator in that order"

I installed the last update for Maui (https://github.com/dotnet/maui). When I add an image, it makes an error: "error MAUI0000: System.NotSupportedException: Mu

Appium Android driver is un installing for second time even full reset is false

Appium Android driver is un installing for second time even full reset is false. Below are cases i am attaching. ** First time installing as expected ** capabil

Want to run js in loop [closed]

var pause = document.querySelector(".pause1"); var audio = document.querySelector(".audio1"); function togglePlay() { if (audio.paused)

PHP Parse time Days/hours/minutes + round up to closest step

I Have system, where people ar tracking there spent time on project. After project is ending, I want to count there spent time + round up to closest step For no

Dynamic(with mouseover/coordinates) web scraping python unable to extract information

I'm trying to scrape the data that only appears on mouseover(selenium). It's a concert map and this is my entire code. I keep getting TypeError: 'ActionChains'